package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Order;
import cn.wolfcode.trip.base.domain.Product;
import cn.wolfcode.trip.base.query.OrderQueryObject;
import cn.wolfcode.trip.base.query.ProductQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IOrderService {

    int deleteByPrimaryKey(Long id);

    //添加购物车订单
    int insert(Order record);

    Order selectByPrimaryKey(Long id);

    Order selectOne(Long id);

    List<Order> selectAll();

    int updateByPrimaryKey(Order record);

    //分页
    PageInfo query(OrderQueryObject qo);

    //购物车
    PageInfo list(OrderQueryObject qo);

    //添加待支付订单
    void insertPay(Order order);
}
